$(function() {
    $(".datepicker").datepicker();
});

function compensation(){
    if($("#category")[0].value=="Compensation"){
        $("#duration").css("visibility", "visible");
    } else {
        $("#duration").css("visibility", "hidden");
    }
}